/*###################################################################*
#
# MP (Mitchell Pell) Base - CrossPlatform Base Utilities.
# Copyright (C) 2014  Mitchell Pell
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
####################################################################*/

#ifndef BASE_UPDATEABLE_H
#define BASE_UPDATEABLE_H

namespace mp_base{
	namespace interfaces{

		/*!----------------------------------------------------------------
		*	@class		Updateable
		*	@brief		Template for an updateable object.
		*
		*	@author		Mitchell Pell
		*	@date		9/27/2013
		*	@version	1.0
		*
		-----------------------------------------------------------------*/
		class Updateable
		{
		protected:
			bool m_running;
			bool m_initialized;
		public:
			Updateable(){ m_running = false; m_initialized = false; }
			virtual void Initialize(){ m_initialized = true; }
			virtual void Update() = 0;
			virtual void Uninitialize(){ m_running = false; m_initialized = false; }
			bool IsRunning(){ return m_running; }
			bool IsInitialized(){ return m_initialized; }
		};
	}
}

#endif